import http from "./http";

export const get = (url: any, params: any, responseType = 'json') => {
    return http({
        method: 'get',
        url,
        params,
        responseType,
    })
}

export const post = (url: any, data: any, responseType = 'json') => {
    return http({
        method: 'post',
        url,
        data,
        responseType,
    })
}
export function getUUID() {
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
        return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16)
    })
}